import inspect


class Project(object):
    fileName: str = None
    projectName: str = "未命名项目"

    def load(self, project: "Project") -> None:
        for attr in dir(self):
            if not attr.startswith("__") and not inspect.ismethod(getattr(self, attr)):
                setattr(self, attr, getattr(project, attr))


project = Project()
